package com.data.center.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.data.center.annotation.ForeignInfo;
import com.data.center.service.impl.ExpertServiceImpl;
import lombok.Data;

import java.util.Date;

@Data
@TableName("expert")
public class Expert {
    @TableId
    @ForeignInfo(targetClass = Person.class, foreignKey = "personId", serviceClass = ExpertServiceImpl.class)
    private String expertId;
    private String availability;
    @ForeignInfo(targetClass = Staff.class, foreignKey = "staffId", serviceClass = ExpertServiceImpl.class)
    private String creator;
    private Date creationTime;
}
